home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Library
/
RoseWare - Network Support Library.iso
/
manage
/
nnloop.exe
/
TESTERR.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-02-05
|
1KB
|
38 lines
@echo off
break on
echo ----------------- COMPARISON ERROR SUSPTECTED ------------------
echo
echo NOW TESTING FILE %1%2 FOR CORRUPTION...
compare f:\public\%2 %1%2
if errorlevel 1 goto ERRORNOW
echo
echo THE FILE WAS NOT CORRUPTED--CONTINUE WITH NNLOOP OPERATION
echo BY REBOOTING THIS WORKSTATION.
echo
goto CONT
:ERRORNOW
echo ------------------ NNLOOP OPERATION SUSPENDED ------------------ >> a:\error.log
echo ERROR FILE %1%2 DOES NOT COMPARE! >> a:\error.log
echo ------------------ NNLOOP OPERATION SUSPENDED ------------------
echo
echo ERROR FILE %1%2 DOES NOT COMPARE!
echo The file %1 did not compare with the original file
echo in SYS:PUBLIC. Please check the drive and directory to determine the
echo nature of the problem. To end the test now, type CTRL-BREAK or
echo CTRL-C until the system stops. The system has placed the programs
echo FC.EXE and DEBUG.COM in the root directory to assist in diagnosing
echo the problem. The usage for FC is
echo
echo FC /b F:\PUBLIC\%2 %1%2
echo
if errorlevel 3 echo One of the files cound not be found.
if errorlevel 3 goto CONT
if errorlevel 2 echo The files are the same size but do not match.
if errorlevel 2 goto CONT
if errorlevel 1 echo The files are not the same size.
:CONT
echo
pause
pause
pause
pause